<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //BigInt 类型用于表示任意长度的整数。 大整数
        //const bigInt = 1234567890123456789012345678901234567890;
        //会出现精度丢失  1.2345678901234568e+39
        //加上n就不会丢失
        
        const bigInt = 1234567890123456789012345678901234567890n;
        
        console.log(bigInt);
    </script>
</body>

</html>